package com.example.exam.repository;

import com.example.exam.entity.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


/**
 * @author shishuqian
 * date 2021/5/3
 * time 22:22
 **/
@Repository
public interface QuestionRepository extends JpaRepository<Question,Integer>{

    //@Query(value = "SELECT p FROM Question p WHERE p.examPaperId = ?1")
    //List<Question> findByExamPaperId(Integer examPaperId);
}
